
import { defineStore } from 'pinia';
import { WorkState } from '/#/store';


export const useWorkStore = defineStore({
	id: 'app-Work',
	state: (): WorkState => ({
		nodeMap: new Map(),
		isEdit: null,
		selectedNode: {},
		selectFormItem: null,
		design: {},
		runningList: [],
		noTakeList: [],
		endList: [],
		diagramMode: 'design',
		nodeValues: {},
		dataRecord: {}
	}),
	getters: {

	},
	actions: {
		selectedNode(val) {
			this.selectedNode = val
		},
		loadForm(val) {
			this.design = val
		},
		setIsEdit(val) {
			this.isEdit = val
		}
	}
});
